Threaded Serial Port reader


Serial Port reader in an execution thread.
Publishing the readings from the serial port to a Queue.

</span>
This notebook shows how the module ThreadedSerialReader works.

Set modules path first:


In [1]:
import sys
#sys.path.insert(0, '/home/asanso/workspace/att-spyder/att/src/python/')
sys.path.insert(0, 'i:/dev/workspaces/python/att-workspace/att/src/python/')

We first create the queue where we want the serial port thread will be pushing the readings.


In [2]:
import Queue

workQueue = Queue.Queue(10000)

It is time now to build one of the important things: the serial port.
We will use the file serialPort abstraction:


In [3]:
import hit.serial.serial_port_builder

builder = hit.serial.serial_port_builder.ATTHitsFromFilePortBuilder()

And we will create a Thread instance:


In [4]:
from hit.serial.serial_reader import *

port="train_points_import_data/arduino_raw_data.txt"
baud=0

myThread = ThreadedSerialReader(1, "Thread-1", workQueue, None, builder, port, baud, None)

Let's rock the Thread!


In [5]:
myThread.start()


Starting Thread-1

And we start reading que queue...


In [6]:
while not workQueue.empty():
    reading = workQueue.get()
    print reading
    if reading == "":
        break


Reading from serial: hit: {0:25 1549:4 2757:4 1392:4 2264:7 1764:7 1942:5 2984:5 r}
Reading from serial: hit: {0:33 1521:6 2712:4 1364:4 2226:10 1894:10 1905:8 2932:5 r}
Reading from serial: hit: {0:34 1554:7 2766:5 1233:4 2273:10 1766:4 1951:12 2993:4 r}
Reading from serial: hit: {0:31 1667:6 2878:4 1345:4 2209:4 1880:8 2056:14 2935:4 r}
Reading from serial: hit: {0:28 1529:6 2737:5 1211:5 2244:9 1735:4 1920:6 2967:4 r}
Reading from serial: hit: {0:35 1525:8 2720:5 1207:6 2237:10 1744:5 1922:5 2939:5 r}
Reading from serial: hit: {0:9 1521:10 2746:5 1218:8 2251:9 1744:5 1929:4 2971:4 r}
Reading from serial: hit: {0:16 1694:6 2910:5 1372:4 2415:8 1913:6 2098:10 2965:4 r}
Reading from serial: hit: {0:5 1703:6 2911:5 1561:4 2416:9 1402:4 2094:6 3136:5 r}
Reading from serial: hit: {0:25 1690:5 4420:4 1211:4 2230:6 1731:5 1909:4 2930:4 r}
Reading from serial: hit: {0:23 1676:6 2708:5 1369:4 2237:7 1893:8 2084:17 2939:4 r}
Reading from serial: hit: {0:6 1684:8 2197:4 1375:4 2403:9 1398:5 2063:9 2959:4 r}
Reading from serial: hit: {0:34 1540:7 2729:5 1221:4 2252:10 1244:4 1938:7 2954:5 r}
Reading from serial: hit: {146:13 1361:5 2055:4 0:7 1395:8 202:20 565:10 2456:4 r}
Reading from serial: hit: {322:15 1509:5 1520:5 0:10 1368:6 197:17 552:10 2929:4 r}
Reading from serial: hit: {146:7 1352:7 1528:4 0:12 1206:5 202:18 558:10 2945:7 r}
Reading from serial: hit: {148:10 1387:5 1398:5 0:9 1237:5 23:7 569:18 2844:4 r}
Reading from serial: hit: {298:17 1321:5 1499:5 0:12 1175:4 188:19 527:11 2915:6 r}
Reading from serial: hit: {131:7 311:4 1509:4 0:12 1197:4 184:20 547:13 2945:9 r}
Reading from serial: hit: {131:14 306:4 1340:4 0:9 1363:7 184:16 525:10 2448:4 r}
Reading from serial: hit: {298:16 1332:5 1519:4 0:12 1186:4 187:19 525:11 2913:6 r}
Reading from serial: hit: {137:12 311:5 1492:5 0:13 1170:5 190:21 530:12 2906:8 r}
Reading from serial: hit: {298:17 1491:5 1503:5 0:11 1342:6 188:18 523:8 2898:4 r}
Reading from serial: hit: {0:12 372:4 1401:5 34:15 1255:7 57:21 595:20 2485:7 r}
Reading from serial: hit: {148:9 340:4 1379:4 0:10 1220:4 204:15 568:18 2963:6 r}
Reading from serial: hit: {146:4 1347:4 1537:4 0:9 1380:6 202:17 550:8 2978:6 r}
Reading from serial: hit: {321:16 332:4 2044:8 0:12 1224:5 196:19 567:12 2958:8 r}
Reading from serial: hit: {319:12 1362:7 1543:5 0:13 1228:5 194:21 565:18 2964:8 r}
Reading from serial: hit: {992:5 1525:4 3046:6 842:10 1886:4 0:8 876:10 2755:4 r}
Reading from serial: hit: {965:5 1323:4 3077:9 661:5 1866:5 0:7 695:11 2786:4 r}
Reading from serial: hit: {973:6 1502:5 3236:8 1007:8 2045:5 0:6 858:23 2081:4 r}
Reading from serial: hit: {963:6 1477:5 3161:6 815:7 1994:5 0:7 847:14 3390:4 r}
Reading from serial: hit: {957:7 1473:6 3170:8 824:8 2018:6 0:9 856:15 3399:5 r}
Reading from serial: hit: {943:4 1628:4 3189:7 972:10 1991:4 0:4 841:18 2897:4 r}
Reading from serial: hit: {970:6 1489:5 3050:4 828:6 2046:6 0:4 860:25 2082:4 r}
Reading from serial: hit: {966:7 1486:6 3033:6 818:8 2041:5 0:6 850:26 2077:4 r}
Reading from serial: hit: {977:5 1503:7 3027:4 842:7 2031:6 0:8 874:16 3425:4 r}
Reading from serial: hit: {950:7 1485:5 3031:9 646:4 1840:6 0:7 680:8 2736:4 r}
Reading from serial: hit: {1109:6 1631:5 3168:7 805:4 1983:4 0:4 839:20 2875:4 r}
Reading from serial: hit: {964:5 1467:4 3016:6 819:9 1847:4 0:4 685:17 2737:4 r}
Reading from serial: hit: {975:5 1515:4 3011:5 827:7 2027:5 0:8 859:14 3408:5 r}
Reading from serial: hit: {955:5 1502:4 3067:8 807:9 2058:5 0:9 839:16 2780:4 r}
Reading from serial: hit: {818:4 1336:4 3040:6 666:5 1873:6 0:8 700:19 2747:4 r}
Reading from serial: hit: {958:6 1483:5 3019:7 824:10 2024:5 0:8 690:4 2733:4 r}
Reading from serial: hit: {988:5 1526:6 3217:6 838:6 2057:6 0:4 872:19 2093:4 r}
Reading from serial: hit: {954:5 965:5 2541:7 314:10 1522:5 0:8 171:12 2241:4 r}
Reading from serial: hit: {962:5 1473:5 3182:5 829:6 2023:6 0:9 861:18 2057:4 r}
Reading from serial: hit: {779:6 1301:4 3019:7 644:5 1860:6 0:6 678:19 2728:4 r}
Reading from serial: hit: {1493:4 1848:4 3411:8 1343:5 2215:7 0:13 521:14 1735:4 r}
Reading from serial: hit: {1325:4 1841:5 3233:6 1175:5 2048:6 0:34 344:16 1581:4 r}
Reading from serial: hit: {1490:5 1838:5 3357:8 1340:4 2204:6 0:25 514:15 1737:4 r}
Reading from serial: hit: {1463:6 1824:6 3202:5 1328:4 2022:4 0:32 510:12 1710:4 r}
Reading from serial: hit: {1491:9 1855:8 3252:7 1167:6 2052:6 0:37 525:11 2265:9 r}
Reading from serial: hit: {1455:4 1967:5 3325:6 1314:6 2174:7 0:7 505:20 2379:8 r}
Reading from serial: hit: {1466:5 1829:6 3218:5 1496:5 2030:4 0:30 513:12 1713:4 r}
Reading from serial: hit: {1488:6 1841:6 2544:4 1170:6 2045:6 0:39 527:13 2250:5 r}
Reading from serial: hit: {1319:4 1823:7 3209:5 1173:6 2040:5 0:35 357:20 2251:9 r}
Reading from serial: hit: {1318:5 1865:4 3256:9 1170:7 2060:7 0:41 357:14 1580:4 r}
Reading from serial: hit: {7103:4 1833:5 3212:7 1168:5 2037:7 0:36 342:21 2249:9 r}
Reading from serial: hit: {1969:7 2309:7 3731:8 1665:5 2520:6 0:5 854:23 2734:9 r}
Reading from serial: hit: {1474:4 1992:4 2673:6 1326:4 2190:8 0:23 691:16 2561:15 r}
Reading from serial: hit: {1519:5 1861:6 3225:4 1553:5 2069:5 0:23 363:17 2273:10 r}
Reading from serial: hit: {1499:6 2009:4 3411:8 1349:6 2217:6 0:10 521:23 1744:5 r}
Reading from serial: hit: {1806:4 2351:6 3754:7 1669:6 2548:6 0:4 843:14 2760:12 r}
Reading from serial: hit: {313:11 0:6 1190:5 343:10 861:7 1390:8 884:5 2082:9 r}
Reading from serial: hit: {170:11 0:8 1051:4 203:6 720:6 1262:4 916:14 1957:7 r}
Reading from serial: hit: {328:17 0:6 1198:6 361:12 709:4 723:5 910:8 1617:4 r}
Reading from serial: hit: {168:11 0:9 1207:5 202:4 711:6 724:4 895:13 1945:4 r}
Reading from serial: hit: {327:19 0:7 1230:7 357:14 720:4 733:4 920:8 1613:4 r}
Reading from serial: hit: {328:12 0:4 1206:5 358:7 894:6 1418:4 917:4 2128:10 r}
Reading from serial: hit: {329:13 0:5 1201:5 363:8 881:6 1412:6 904:4 1596:4 r}
Reading from serial: hit: {168:8 0:7 1217:5 202:6 722:7 1416:6 918:15 2096:15 r}
Reading from serial: hit: {153:11 0:9 1178:8 183:7 703:7 1370:7 890:16 2097:15 r}
Reading from serial: hit: {168:11 0:7 1191:4 201:7 718:6 1401:6 905:15 1926:4 r}
Reading from serial: hit: {166:10 0:6 1215:5 200:6 712:6 1427:6 909:14 2138:13 r}
Reading from serial: hit: {150:16 0:8 1025:6 180:7 693:6 1237:4 891:17 1419:5 r}
Reading from serial: hit: {169:10 0:5 1194:6 378:6 883:6 897:5 1073:19 1606:7 r}
Reading from serial: hit: {150:14 0:7 1038:5 180:9 706:5 539:4 728:10 1958:14 r}
Reading from serial: hit: {155:9 0:6 1216:6 187:4 707:6 721:5 906:15 1965:5 r}
Reading from serial: hit: {1153:5 1003:5 2037:8 0:18 1194:4 1208:11 878:7 2447:5 r}
Reading from serial: hit: {1676:4 1158:5 2030:5 0:7 1364:4 1200:5 1033:6 2438:4 r}
Reading from serial: hit: {1145:5 989:8 1846:5 0:19 1022:4 1199:12 869:7 2413:5 r}
Reading from serial: hit: {2878:6 990:5 1865:6 0:14 2055:6 1207:11 1392:15 2265:4 r}
Reading from serial: hit: {2847:4 1162:6 2017:7 0:5 1196:4 1374:13 877:4 2416:4 r}
Reading from serial: hit: {1159:9 989:8 2015:11 0:22 1203:5 1217:13 877:8 2418:5 r}
Reading from serial: hit: {2714:7 1005:6 2044:8 0:19 1200:4 1213:10 880:10 2452:6 r}
Reading from serial: hit: {3033:7 1158:5 2016:8 0:14 2037:4 1204:4 882:6 2426:4 r}
Reading from serial: hit: {2826:5 1150:6 2007:6 0:9 2203:6 1195:4 1038:4 2407:4 r}
Reading from serial: hit: {3022:6 1154:4 2000:6 0:14 2201:6 1360:11 871:6 2405:4 r}
Reading from serial: hit: {2850:4 990:6 1995:10 0:27 1183:4 1197:13 866:7 2231:4 r}
Reading from serial: hit: {1148:4 993:8 2014:10 0:18 1190:4 1038:7 881:7 2408:6 r}
Reading from serial: hit: {1152:7 1002:6 2019:9 0:26 1193:5 1206:13 877:10 2435:6 r}
Reading from serial: hit: {1159:5 1009:7 1858:4 0:23 2049:7 1211:14 885:5 2261:4 r}
Reading from serial: hit: {1156:4 1000:8 1867:7 0:19 1033:4 1208:13 1386:19 2267:4 r}
Reading from serial: hit: {1669:4 1181:6 2017:6 0:10 1211:4 1224:8 889:5 2424:4 r}
Reading from serial: hit: {2341:4 1999:4 1842:5 0:16 1696:4 22:11 199:20 1393:4 r}
Reading from serial: hit: {2318:4 1990:4 2001:9 0:9 847:5 187:13 363:67 1553:7 r}
Reading from serial: hit: {7070:5 3707:4 1831:6 0:15 671:4 22:11 204:37 1370:4 r}
Reading from serial: hit: {2365:4 2039:4 2050:9 0:4 865:5 196:13 381:55 1581:6 r}
Reading from serial: hit: {2514:5 3876:4 2015:9 143:18 989:5 166:9 0:6 1541:5 r}
Reading from serial: hit: {2373:4 3776:4 2053:9 0:7 856:5 188:12 365:45 1580:6 r}
Reading from serial: hit: {659:5 1870:4 1715:7 0:19 698:5 23:12 217:83 1248:4 r}
Reading from serial: hit: {2000:4 2011:4 2022:9 0:5 857:5 23:5 380:70 1574:7 r}
Reading from serial: hit: {3535:4 3870:4 2038:9 0:5 866:5 196:10 382:53 1581:6 r}
Reading from serial: hit: {2336:7 2016:6 1861:5 0:7 853:5 23:8 201:45 1401:6 r}
Reading from serial: hit: {2474:8 2152:4 1995:9 144:18 1849:5 167:5 0:7 1541:6 r}
Reading from serial: hit: {659:5 509:4 1719:6 0:19 698:5 23:14 208:71 1246:4 r}
Reading from serial: hit: {3548:5 2022:4 2033:10 143:19 843:4 166:13 0:5 1553:6 r}
Reading from serial: hit: {1842:4 3571:4 1864:9 0:18 679:4 23:9 210:52 1388:6 r}
Reading from serial: hit: {2361:7 2041:4 1873:9 0:13 1716:4 23:6 200:52 1399:7 r}
Reading from serial: hit: {2359:5 647:4 2052:10 0:12 852:5 187:13 359:56 1584:6 r}
Reading from serial: hit: {1687:10 2551:5 2908:4 1197:4 1209:7 0:14 189:98 1243:4 r}
Reading from serial: hit: {1665:12 1512:4 3569:8 1351:6 1187:6 0:4 185:79 1398:10 r}
Reading from serial: hit: {1660:10 1507:4 3535:7 1353:7 1189:5 0:12 178:76 1397:9 r}
Reading from serial: hit: {1650:7 2662:4 3689:4 1160:4 1347:6 0:4 190:22 1546:9 r}
Reading from serial: hit: {1497:4 1508:6 3549:5 1364:5 1200:6 0:21 176:86 1407:10 r}
Reading from serial: hit: {1469:4 1480:5 3526:5 1336:4 1182:6 0:19 175:88 1379:9 r}
Reading from serial: hit: {1650:11 1478:4 3575:9 1332:7 1177:6 0:7 177:80 1378:9 r}
Reading from serial: hit: {1652:7 2686:4 3572:5 1344:5 1182:4 0:7 177:43 1389:6 r}
Reading from serial: hit: {1482:6 1493:4 3569:4 1340:5 1185:6 0:18 176:84 1383:9 r}
Reading from serial: hit: {1490:7 2544:4 3401:5 1172:4 1017:4 0:19 12:39 1217:6 r}
Reading from serial: hit: {1665:10 2681:4 3540:9 1349:7 1185:6 0:9 185:85 1393:9 r}
Reading from serial: hit: {1474:8 1321:4 3532:5 1341:4 1175:6 0:17 183:93 1385:10 r}
Reading from serial: hit: {1640:12 1482:4 3549:8 1338:6 1174:6 0:19 178:96 1381:10 r}
Reading from serial: hit: {1491:4 1502:4 3540:5 1343:6 1179:5 0:17 177:75 1388:8 r}
Reading from serial: hit: {1867:5 0:27 1019:4 1366:5 1553:14 1926:4 1398:8 2132:10 r}
Reading from serial: hit: {1850:4 0:30 1014:5 1531:9 1543:14 1725:4 1397:9 2092:9 r}
Reading from serial: hit: {1166:5 0:15 1709:6 1540:6 1552:6 1908:5 1575:10 2273:11 r}
Reading from serial: hit: {1671:5 0:20 1011:5 1523:9 1534:15 1729:4 1388:9 2093:9 r}
Reading from serial: hit: {1153:4 0:20 1174:4 1507:5 1694:13 1871:4 1539:7 2236:8 r}
Reading from serial: hit: {1160:7 0:23 1688:12 1353:6 1531:9 1887:6 1385:4 2260:16 r}
Reading from serial: hit: {1697:6 0:33 1025:7 1551:8 704:4 1755:5 1405:10 2120:14 r}
Reading from serial: hit: {1158:5 0:44 1693:13 1356:4 1536:12 1888:6 1389:4 2243:16 r}
Reading from serial: hit: {1179:4 0:19 1876:9 1543:6 1556:6 1910:5 1409:4 2268:9 r}
Reading from serial: hit: {1855:5 0:21 1698:13 1354:4 1541:12 2611:5 1386:7 2114:8 r}
Reading from serial: hit: {1161:5 0:29 1692:6 1362:5 1549:6 1909:5 1394:4 2278:12 r}
Reading from serial: hit: {1173:5 0:14 1194:4 1368:5 1553:5 1911:6 1575:10 2267:12 r}
Reading from serial: hit: {1151:7 0:25 1172:6 1346:5 1529:9 1888:7 1378:8 2253:16 r}
Reading from serial: hit: {1685:6 0:33 1708:13 1535:10 1547:12 1925:4 1392:5 2127:5 r}
Reading from serial: hit: {1170:8 0:14 1190:6 1364:7 874:4 1902:7 1397:4 2259:14 r}
Reading from serial: hit: {3047:6 0:5 520:5 22:5 370:13 1236:8 565:21 911:9 r}
Reading from serial: hit: {1479:4 112:8 648:4 134:7 321:8 1354:10 0:4 873:5 r}
Reading from serial: hit: {1522:4 0:9 516:7 21:7 197:5 1243:10 560:31 926:11 r}
Reading from serial: hit: {636:5 112:13 658:6 135:9 322:14 1214:8 0:4 889:9 r}
Reading from serial: hit: {616:6 118:12 636:8 140:8 324:11 1181:7 0:5 860:6 r}
Reading from serial: hit: {2925:5 0:4 518:6 22:5 368:15 1244:10 563:27 921:10 r}
Reading from serial: hit: {1521:5 0:7 511:7 22:6 200:5 1220:9 556:30 900:11 r}
Reading from serial: hit: {1388:6 0:11 540:5 22:9 209:12 1086:6 583:31 769:7 r}
Reading from serial: hit: {659:4 0:7 515:5 186:7 371:15 1387:9 51:5 899:7 r}
Reading from serial: hit: {634:4 113:10 657:5 135:6 322:9 1201:5 0:4 889:7 r}
Reading from serial: hit: {2887:6 0:11 509:7 21:7 197:7 1225:10 554:29 898:9 r}
Reading from serial: hit: {620:4 118:10 640:8 140:8 329:8 1185:6 0:4 873:5 r}
Reading from serial: hit: {3039:7 0:4 518:7 200:8 211:5 1249:7 54:4 926:10 r}
Reading from serial: hit: {1518:5 119:9 480:6 142:11 325:16 1215:10 0:6 886:12 r}
Reading from serial: hit: {637:5 114:11 660:6 136:7 323:11 1211:7 0:4 890:8 r}
Reading from serial: hit: {4028:4 3877:4 1515:6 821:8 832:4 1016:4 0:13 868:4 r}
Reading from serial: hit: {5702:4 3850:4 1316:5 810:7 821:9 1173:4 0:8 857:5 r}
Reading from serial: hit: {1494:4 2865:4 1168:4 659:10 670:5 1202:17 0:54 883:4 r}
Reading from serial: hit: {1476:4 3864:5 1165:4 826:4 660:5 1199:12 0:41 874:4 r}
Reading from serial: hit: {4188:4 3859:4 1315:4 816:7 828:9 1011:4 0:29 864:6 r}
Reading from serial: hit: {1463:4 3871:5 1319:10 646:4 658:5 1018:4 0:47 863:5 r}
Reading from serial: hit: {4381:4 4050:4 1493:6 983:4 994:10 1178:4 0:4 1031:5 r}
Reading from serial: hit: {3826:5 2816:4 1315:6 646:10 825:5 838:4 0:55 1706:9 r}
Reading from serial: hit: {1486:4 3876:4 1168:4 644:10 655:5 1202:15 0:41 869:5 r}
Reading from serial: hit: {4034:4 461:4 1159:7 657:12 668:11 1193:15 0:40 704:4 r}
Reading from serial: hit: {3871:4 2837:4 1312:8 482:4 658:5 1011:4 0:53 863:4 r}
Reading from serial: hit: {4181:5 613:4 1311:6 798:8 810:9 993:6 0:30 846:5 r}
Reading from serial: hit: {4202:6 3874:5 1333:5 817:7 828:8 1021:7 0:36 864:6 r}
Reading from serial: hit: {4219:6 2865:4 1315:5 810:8 821:9 1005:5 0:51 857:7 r}
Reading from serial: hit: {2004:5 3890:6 1329:9 822:8 833:12 1026:4 0:5 869:6 r}
Reading from serial: hit: {1480:4 3858:5 1337:6 645:8 832:9 1025:6 0:54 868:5 r}
Reading from serial: hit: {2943:6 3128:4 2476:8 1969:5 1137:4 1316:8 0:8 1171:8 r}
Reading from serial: hit: {2979:11 1825:6 2336:12 1153:4 983:4 996:5 0:8 1021:8 r}
Reading from serial: hit: {2661:4 4924:4 2177:11 3383:4 986:7 1172:6 0:122 845:7 r}
Reading from serial: hit: {2653:5 2999:5 2348:9 1833:4 987:4 1168:11 0:138 1021:7 r}
Reading from serial: hit: {2832:9 3018:4 2347:9 2003:4 997:4 1186:4 0:105 1031:8 r}
Reading from serial: hit: {2799:9 2984:5 2331:10 1813:4 986:6 1161:12 0:148 1020:11 r}
Reading from serial: hit: {2812:9 2989:4 2316:9 1984:5 983:4 1157:4 0:94 1017:9 r}
Reading from serial: hit: {2854:9 1822:4 2366:5 2020:4 1159:4 1346:9 0:5 1193:10 r}
Reading from serial: hit: {2852:9 3029:4 2353:9 3550:5 1160:6 1345:5 0:59 1017:5 r}
Reading from serial: hit: {2820:11 1799:5 2335:7 1996:6 1157:6 1171:5 0:22 1193:11 r}
Reading from serial: hit: {2874:11 1837:4 2374:11 2034:5 1168:5 1355:9 0:25 1202:10 r}
Reading from serial: hit: {2842:10 3029:5 2356:10 2014:5 998:5 1344:5 0:129 1032:10 r}
Reading from serial: hit: {2796:8 1781:4 2291:4 1967:4 1140:6 1320:9 0:51 1008:4 r}
Reading from serial: hit: {2812:11 1783:4 2322:9 1968:4 1142:7 1321:9 0:86 1004:5 r}
Reading from serial: hit: {2819:7 3003:4 2331:11 2171:4 986:5 1332:5 0:77 1021:9 r}
Reading from serial: hit: {2827:5 5047:4 2344:10 2187:4 994:5 1355:4 0:62 1028:8 r}
Reading from serial: hit: {2828:8 3000:5 2344:9 2011:5 996:5 1184:7 0:100 1030:9 r}
Reading from serial: hit: {1180:4 0:9 11:8 2384:5 196:5 1575:4 896:9 1076:10 r}
Reading from serial: hit: {2171:8 0:7 178:13 2559:7 365:12 1726:7 1053:11 1067:6 r}
Reading from serial: hit: {2180:7 0:6 172:14 2533:7 357:14 1727:7 1053:11 1066:10 r}
Reading from serial: hit: {2214:7 0:5 188:13 2603:8 545:21 1758:5 1075:10 1088:4 r}
Reading from serial: hit: {2036:6 0:11 12:17 2410:9 210:20 1588:6 750:5 939:13 r}
Reading from serial: hit: {1208:4 0:8 183:18 2414:5 378:20 1765:6 922:9 1101:11 r}
Reading from serial: hit: {1195:4 0:10 188:19 2425:6 209:4 1761:6 929:10 1105:12 r}
Reading from serial: hit: {2020:6 0:8 12:19 2386:7 201:17 1564:6 887:10 901:11 r}
Reading from serial: hit: {1195:4 0:4 189:8 2590:7 376:14 1775:6 1092:12 1106:7 r}
Reading from serial: hit: {2199:5 0:4 173:18 2561:9 369:19 1752:7 909:5 1089:13 r}
Reading from serial: hit: {2233:5 0:4 188:14 2448:4 374:17 1772:8 907:4 1096:11 r}
Reading from serial: hit: {1191:5 0:12 11:9 2382:6 211:4 1735:6 922:11 935:4 r}
Reading from serial: hit: {1359:4 0:4 172:14 531:4 368:20 1746:7 1077:13 1091:14 r}
Reading from serial: hit: {1349:4 0:4 172:7 2570:6 354:16 1744:7 1057:11 1071:8 r}
Reading from serial: hit: {2026:4 0:8 11:11 2378:5 209:4 1744:6 905:7 1085:12 r}
Reading from serial: hit: {1185:4 0:11 12:7 2382:6 208:4 1745:5 904:10 1084:11 r}
Reading from serial: hit: {2009:4 979:4 1171:16 2042:4 0:16 2744:4 1553:7 1045:8 r}
Reading from serial: hit: {2005:8 979:6 1166:21 2039:4 0:26 1880:4 693:6 878:4 r}
Reading from serial: hit: {1972:4 962:4 1155:20 3051:6 0:20 2021:4 1534:5 1030:9 r}
Reading from serial: hit: {2196:8 1181:9 1192:18 3096:5 0:5 2071:4 890:5 1067:7 r}
Reading from serial: hit: {2163:8 989:6 1179:21 1858:4 0:6 2734:4 876:5 1054:9 r}
Reading from serial: hit: {2000:5 979:7 990:12 2363:5 0:25 1875:5 695:5 1045:8 r}
Reading from serial: hit: {2198:8 1173:4 1184:8 3099:4 0:16 2075:4 1568:9 1060:7 r}
Reading from serial: hit: {2010:5 1165:6 1176:11 3222:5 0:5 2062:4 879:4 1064:6 r}
Reading from serial: hit: {2169:7 973:6 1162:21 1856:4 0:12 2051:4 1378:5 1039:9 r}
Reading from serial: hit: {1995:6 976:5 987:9 2376:4 0:23 1870:4 692:4 1042:7 r}
Reading from serial: hit: {1989:9 986:8 495:4 2019:4 0:36 1713:4 701:5 886:8 r}
Reading from serial: hit: {2172:9 1171:7 1183:12 2206:4 0:26 2739:5 720:4 897:4 r}
Reading from serial: hit: {2031:7 838:4 1012:10 2926:4 0:22 1906:4 714:6 901:4 r}
Reading from serial: hit: {1988:5 971:5 1161:18 3017:4 0:23 2710:4 687:4 1036:7 r}
Reading from serial: hit: {1998:4 964:4 975:10 822:4 0:25 2049:4 1534:7 1030:7 r}
Reading from serial: hit: {2157:8 994:4 1168:17 3045:5 0:19 2892:5 1542:6 1056:7 r}
Reading from serial: hit: {2010:5 992:5 1004:5 848:4 0:29 1899:4 705:6 892:4 r}
Reading from serial: hit: {3050:5 1334:5 658:6 2560:5 0:25 2067:5 359:47 372:13 r}
Reading from serial: hit: {2177:5 2881:4 662:5 2904:4 0:4 2051:5 350:15 539:16 r}
Reading from serial: hit: {4690:4 1325:4 661:4 2534:5 0:26 2052:5 198:9 376:16 r}
Reading from serial: hit: {4919:5 2864:4 655:5 2709:5 0:17 2044:5 193:4 375:4 r}
Reading from serial: hit: {3021:6 473:4 662:6 2547:5 0:24 1718:4 189:21 373:11 r}
Reading from serial: hit: {3030:4 2880:4 678:5 2556:5 0:20 2071:5 369:41 382:8 r}
Reading from serial: hit: {3017:4 2858:4 651:6 2712:5 0:20 2052:5 189:4 535:17 r}
Reading from serial: hit: {3028:5 2860:4 665:5 2538:5 0:23 1886:5 189:21 380:12 r}
Reading from serial: hit: {3016:5 1340:4 673:4 2544:5 0:23 1890:5 197:27 386:11 r}
Reading from serial: hit: {3010:4 2860:4 2694:4 2537:5 0:22 1899:7 197:28 388:11 r}
Reading from serial: hit: {2007:6 2688:5 510:6 2544:5 0:29 1727:4 196:44 387:21 r}
Reading from serial: hit: {2165:6 2866:4 656:6 2711:5 0:11 2051:5 354:36 534:18 r}
Reading from serial: hit: {2000:5 2852:4 2698:6 2541:5 0:29 1711:4 189:26 371:12 r}
Reading from serial: hit: {2995:5 2845:4 658:4 2523:5 0:25 1864:6 189:33 371:14 r}
Reading from serial: hit: {2002:4 2864:4 662:5 2542:5 0:20 1875:6 189:40 371:10 r}
Reading from serial: hit: {4882:5 2838:4 647:5 2516:4 0:18 2038:5 189:10 363:11 r}
Reading from serial: hit: {4264:4 1179:4 1351:9 1020:5 0:4 872:4 22:57 36:24 r}
Reading from serial: hit: {5724:4 3858:4 1476:4 984:4 146:5 836:4 0:69 182:24 r}
Reading from serial: hit: {7309:5 1331:4 1342:5 996:4 153:5 1021:5 0:61 189:26 r}
Reading from serial: hit: {3015:5 1297:4 1817:5 979:4 312:4 1003:7 0:7 348:19 r}
Reading from serial: hit: {2130:4 1125:4 1647:6 979:4 145:6 831:4 0:93 346:28 r}
Reading from serial: hit: {2833:4 1307:4 3366:5 990:4 1002:9 1014:7 0:32 352:23 r}
Reading from serial: hit: {2884:5 3912:6 1684:5 2917:5 153:6 858:4 0:65 189:10 r}
Reading from serial: hit: {2870:4 1330:4 3422:6 999:4 832:4 1024:10 0:39 351:25 r}
Reading from serial: hit: {7286:5 3888:4 1494:4 987:4 144:7 1012:8 0:43 180:14 r}
Reading from serial: hit: {2867:4 3911:4 1510:4 989:4 146:4 1013:7 0:41 182:7 r}
Reading from serial: hit: {3008:6 1310:4 1821:7 994:4 319:7 1018:9 0:23 353:8 r}
Reading from serial: hit: {5815:4 1179:4 1364:4 2916:5 669:7 865:4 0:65 189:26 r}
Reading from serial: hit: {7319:4 2526:4 3391:6 983:4 825:5 1007:6 0:47 351:20 r}
Reading from serial: hit: {2852:4 1317:4 1495:6 1003:4 152:5 1027:9 0:21 189:20 r}
Reading from serial: hit: {3865:5 1507:4 0:22 2203:5 1208:12 3242:4 2068:14 1575:13 r}
Reading from serial: hit: {4033:6 1680:4 0:39 2211:6 1200:4 3241:5 2066:11 1567:5 r}
Reading from serial: hit: {4044:6 1682:5 0:15 2213:6 1383:14 3423:9 2077:6 1750:10 r}
Reading from serial: hit: {3871:5 1510:5 0:54 2041:7 1210:15 3069:4 1899:10 1578:11 r}
Reading from serial: hit: {4080:6 1693:4 0:5 2229:6 1371:13 3439:9 2085:7 1759:11 r}
Reading from serial: hit: {4029:6 1662:5 0:9 2191:6 1352:13 3399:8 2056:4 1728:12 r}
Reading from serial: hit: {4063:5 1676:4 0:28 2198:7 1369:14 3417:10 2054:5 1740:12 r}
Reading from serial: hit: {3864:5 1343:9 0:68 2031:7 1204:17 3067:4 1897:12 1575:14 r}
Reading from serial: hit: {3891:5 1499:4 0:53 2041:4 1200:9 3261:7 2073:12 1567:9 r}
Reading from serial: hit: {4073:5 1505:4 0:14 2210:6 1198:5 3256:6 2075:13 1571:5 r}
Reading from serial: hit: {3861:6 1488:4 0:63 2193:5 1188:8 3230:7 2047:13 1556:9 r}
Reading from serial: hit: {4025:6 1500:4 0:5 2198:7 1368:15 3382:8 2062:11 1735:12 r}
Reading from serial: hit: {3890:6 1529:5 0:59 2065:7 1213:12 3262:9 2097:12 1597:11 r}
Reading from serial: hit: {4047:4 1679:4 0:58 2220:7 1372:16 3260:5 2075:10 1741:11 r}
Reading from serial: hit: {3908:4 1510:4 0:50 2046:4 1363:18 3258:7 2079:11 1576:6 r}
Reading from serial: hit: {4077:4 1514:7 0:28 2052:4 1194:7 3260:7 2084:14 1580:6 r}
Reading from serial: hit: {3898:5 1504:5 0:55 2044:6 1183:11 3259:8 2076:11 1572:11 r}
Reading from serial: hit: {4015:6 1682:4 0:16 2205:7 1378:15 3228:4 2071:10 1748:9 r}
Reading from serial: hit: {4079:4 1673:4 0:27 2203:7 1372:14 3259:4 2068:6 1741:11 r}
Reading from serial: hit: {2325:4 1659:6 328:8 1348:4 0:7 2213:6 870:11 382:6 r}
Reading from serial: hit: {2368:5 1534:5 150:4 1200:4 0:26 2082:5 715:9 207:4 r}
Reading from serial: hit: {2193:5 486:4 155:8 1190:4 0:22 2243:6 714:6 210:5 r}
Reading from serial: hit: {2332:4 471:4 147:7 1174:4 0:27 2221:7 700:5 204:5 r}
Reading from serial: hit: {1691:4 1523:6 316:7 1364:5 0:9 2255:8 879:12 371:4 r}
Reading from serial: hit: {2355:5 1507:6 144:5 2385:4 0:30 2068:5 681:9 201:4 r}
Reading from serial: hit: {2515:4 1519:4 155:6 2545:4 0:23 2238:7 710:5 210:6 r}
Reading from serial: hit: {2510:5 1484:4 317:5 2544:4 0:19 2215:7 699:4 195:5 r}
Reading from serial: hit: {2359:4 1508:4 155:5 2566:4 0:23 2234:6 721:7 210:5 r}
Reading from serial: hit: {2525:5 1501:4 155:4 2555:5 0:18 2228:7 875:12 210:5 r}
Reading from serial: hit: {2522:7 487:4 155:6 1191:4 0:19 2236:8 713:6 210:6 r}
Reading from serial: hit: {2368:5 1527:5 155:4 1196:4 0:28 2090:5 712:9 210:6 r}
Reading from serial: hit: {2184:4 1518:6 154:5 1184:4 0:24 2235:6 711:7 208:5 r}
Reading from serial: hit: {1669:4 475:4 319:7 1355:5 0:17 2241:7 697:4 200:5 r}
Reading from serial: hit: {2531:6 1505:4 323:7 1348:4 0:4 2232:5 864:10 877:18 r}
Reading from serial: hit: {2489:4 1662:4 314:5 2683:4 0:9 2210:4 863:10 876:13 r}
Reading from serial: hit: {2349:4 1504:4 323:5 1347:4 0:14 2239:6 871:11 210:4 r}
Reading from serial: hit: {3000:7 2135:4 617:7 3905:4 471:15 2176:4 494:7 0:19 r}
Reading from serial: hit: {2852:4 2007:4 463:5 3899:5 310:11 2222:6 507:9 0:32 r}
Reading from serial: hit: {2840:4 1983:4 443:4 3880:5 303:13 2025:4 487:11 0:35 r}
Reading from serial: hit: {2989:5 2160:5 638:8 4039:6 481:14 2372:6 504:8 0:8 r}
Reading from serial: hit: {2977:4 1129:5 628:9 1479:4 310:8 2343:4 504:13 0:26 r}
Reading from serial: hit: {3045:5 2007:4 1160:10 3957:6 308:9 2052:4 506:9 0:30 r}
Reading from serial: hit: {2995:7 1140:4 633:5 3869:4 308:8 2367:4 510:11 0:18 r}
Reading from serial: hit: {2995:6 1988:4 622:5 3872:4 310:12 2034:4 499:10 0:33 r}
Reading from serial: hit: {2994:5 2138:6 619:8 4069:6 473:17 2357:5 496:11 0:21 r}
Reading from serial: hit: {2998:5 1115:4 452:6 3908:6 305:9 2185:7 497:9 0:32 r}
Reading from serial: hit: {3004:6 1133:4 631:7 3899:4 307:9 2030:4 495:10 0:26 r}
Reading from serial: hit: {3000:4 2145:4 627:6 1648:4 479:13 2188:4 502:6 0:6 r}
Reading from serial: hit: {2989:4 1137:4 636:9 1500:4 311:7 3558:7 513:12 0:14 r}
Reading from serial: hit: {2995:5 2139:5 636:7 4029:4 479:13 2358:5 502:9 0:16 r}
Reading from serial: hit: {2996:5 1990:4 629:4 3881:4 306:14 2035:4 329:7 0:34 r}
Reading from serial: hit: {3011:7 1993:4 1148:12 3905:5 305:18 2039:4 328:6 0:38 r}
Reading from serial: hit: {5344:5 2313:4 1799:11 4549:4 807:4 2532:14 829:16 0:23 r}
Reading from serial: hit: {5339:4 2152:4 1636:6 4873:4 810:4 2358:7 833:11 0:32 r}
Reading from serial: hit: {5411:5 2337:4 1821:8 4930:4 1666:12 2554:13 831:11 0:27 r}
Reading from serial: hit: {3865:4 2171:4 1647:11 4931:5 821:6 2377:9 844:9 0:41 r}
Reading from serial: hit: {4133:4 2294:4 1802:9 5020:5 1656:11 2513:13 827:12 0:20 r}
Reading from serial: hit: {5246:4 2186:4 1662:9 4935:5 825:4 2392:10 848:11 0:34 r}
Reading from serial: hit: {5391:4 2182:4 1659:6 4909:5 807:5 2390:9 830:11 0:28 r}
Reading from serial: hit: {5386:4 2326:5 1821:11 5075:5 986:4 2532:11 831:7 0:12 r}
Reading from serial: hit: {5380:4 2292:4 1796:9 4904:4 1652:8 2509:9 824:6 0:15 r}
Reading from serial: hit: {3908:4 2169:4 1660:11 4972:5 817:5 2388:9 840:13 0:37 r}
Reading from serial: hit: {4037:4 2334:5 1810:9 5080:5 980:4 2553:10 1003:11 0:7 r}
Reading from serial: hit: {5417:5 2328:5 1813:10 4927:4 971:4 2545:10 994:13 0:19 r}
Reading from serial: hit: {5270:4 2205:4 1682:4 4959:5 843:5 2419:10 866:12 0:24 r}
Reading from serial: hit: {5497:4 2329:5 1809:8 5038:5 1654:5 2535:14 831:12 0:7 r}
Reading from serial: hit: {5345:4 2270:4 1768:11 4859:5 797:5 2312:4 820:13 0:36 r}

In [ ]:


In [ ]: